﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Tommy
{
    public partial class UINavigator : FormEx,IUINavigator
    {
        Context context;
        public UINavigator()
        {
            InitializeComponent();
        }

        public bool Initialize()
        {
            foreach(Plugin module in context.currentUser.Modules)
            {
                this.treeView1.Nodes.Add(module.Name);
            }
            
            
            return true;
        }

        public bool SetParent(Form formParent)
        {

            this.MdiParent = formParent;
            return true;
        }

        public bool Visibled
        {
            get { return this.Visible; }
            set{this.Visible = value;}
        }
    }
}